package com.taxi.servicemap.controller;

import com.taxi.common.dto.ResponseResult;
import com.taxi.servicemap.service.ServiceFromMapService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: Ruomeng
 * @Date: 2022/10/6
 * @Description : online-taxi 高德map 服务管理
 * @Version: 1.0
 */
@RestController
@RequestMapping("/service")
public class ServiceController {

    @Autowired
    private ServiceFromMapService serviceFromMapService;

    /**
     * 创建服务
     *
     * @param name
     * @return
     */
    @PostMapping("/add")
    public ResponseResult add(String name) {

        return serviceFromMapService.add(name);
    }

}
